home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / aasmacros / apjpt.doc < prev    next >
Text File  |  1993-01-21  |  46KB  |  1,167 lines

  1. % APJPT.STY -- ApJ plano tables style.
  2.  
  3. % Plano tables are camera-ready pages that are included in a typeset
  4. % article the same way as line drawings, graphs, and other camera-ready
  5. % art, i.e., as "planographic" figures.  This file is parameterized so
  6. % that the tables are appropriate for the ApJ.
  7.  
  8. % My convention for identifying configuration information is for styles
  9. % to define the five parameters below.
  10.  
  11. \def\revtex@ver{1.1}        % Version number of this file.
  12. \def\revtex@date{10 Jan 93}    % Revision date.
  13. \def\revtex@org{AAS}        % Sponsoring organization.
  14. \def\revtex@jnl{ApJ}        % Applicable journal, if specific.
  15. \def\revtex@genre{plano tables}    % Document "type".
  16.  
  17. % Display identifying message on screen and in logfile.
  18.  
  19. \typeout{\revtex@org\space \revtex@jnl\space \revtex@genre\space substyle,
  20.     v\revtex@ver\space <\revtex@date>.}
  21.  
  22. % The following mini-colophon identifies the article are having been
  23. % prepared with this macro package.  The \revtex@pageid command only
  24. % defines the formatting of this colophon; its existence and placement
  25. % within the printed article is controlled by the use of this command
  26. % in the style file.
  27.  
  28. \def\revtex@pageid{\xdef\@thefnmark{\null}
  29.     \@footnotetext{This \revtex@genre\space was prepared with the
  30.            \revtex@org\space \LaTeX\ macros v\revtex@ver.}}
  31.  
  32. % Issue a warning if manuscripts are formatted with type smaller than 12pt.
  33.  
  34. \def\genre@MS{manuscript}
  35. \ifx\revtex@genre\genre@MS
  36.   \ifnum\@ptsize<2
  37.     \typeout{Warning: Undersize \revtex@genre\space font (1\@ptsize\space pts).
  38.     Use 12pt documentstyle option.}
  39.   \fi
  40. \fi
  41.  
  42. %  ****************************************
  43. %  *            INITIALIZATION            *
  44. %  ****************************************
  45.  
  46. % Initialization has to occur at the head of this file because LaTeX's
  47. % "plain" pagestyle is used to establish defaults.  These are modified
  48. % below to suit the requirements of this journal.
  49.  
  50. \@input{art8.sty}
  51.  
  52. \ps@plain            % Use "plain" pagestyle for defaults.
  53.  
  54. %  ****************************************
  55. %  *            PAGE LAYOUT               *
  56. %  ****************************************
  57.  
  58. % Create "plaintop" page style that has folios at top of page.
  59.  
  60. \def\ps@plaintop{\let\@mkboth\@gobbletwo
  61.     \def\@oddfoot{}\def\@oddhead{\rm\hfil--\space\thepage\space--\hfil}
  62.     \def\@evenfoot{}\let\@evenhead\@oddhead}
  63.  
  64. %\pretolerance=10000             % Disable hyphenation
  65.  
  66. % The following gives "reasonable" ragged right results.
  67.  
  68. %\@rightskip=\z@ plus 4em\rightskip\@rightskip
  69.  
  70. % Page size, spacing parameters, etc.
  71.  
  72. \newdimen\@fmwidth \@fmwidth=44pc    % Front matter width
  73. \newdimen\@bodywidth \@bodywidth=44pc    % Body text width
  74. \textwidth=\@bodywidth
  75. \textheight=8.9in
  76. \topmargin=0in
  77. \headheight=0in % .15in
  78. \headsep=0in % .35in
  79. \oddsidemargin=0in
  80. \evensidemargin=0in
  81. \parindent=1em
  82. \parskip=0ex
  83. \columnsep=1pc
  84.  
  85. \hoffset=-2.5pc        % To compensate for wide \textwidth
  86. \tolerance=400        % 2x "normal" value; cuts down on overfull complaints
  87.  
  88.  
  89. %\@input{styopts.sty}
  90.  
  91. %  ****************************************
  92. %  *           STYLE OPTIONS              *
  93. %  ****************************************
  94.  
  95. % Make footnotes same size as main text.
  96.  
  97. %\let\footnotesize=\normalsize
  98.  
  99. % Define parameters to adjust the baselineskip.
  100. % These are passed as the scale factor argument to \baselinestretch.
  101.  
  102. \def\@tightleading{1.1}
  103. \def\@doubleleading{1.6}
  104.  
  105. % Double-space by default.  Observe that you double-space in LaTeX by
  106. % resetting \baselinestretch, which is essentially a scale factor for
  107. % \baselineskip (= leading, for you typographophiles).  The style uses
  108. % the \@doubleleading factor, defined above.
  109.  
  110. %\def\baselinestretch{\@doubleleading}
  111.  
  112. % The \tighten command merely resets the \baselinestretch to a
  113. % smaller factor, resulting in single-column text that is more closely
  114. % spaced.  (This will always work.)  Tightening the vertical spacing
  115. % in the text results in output that is more attractive for distribution
  116. % to colleagues who are primarily interested in reading the paper, as
  117. % opposed to copy editing it.  Double-spaced output for referees and
  118. % copy editors is, however, the main objective of this style, hence
  119. % double-spacing occurs by default.  The same effect as \tighten
  120. % can be achieved by using the "tighten" document style option.
  121. %
  122. %    \tighten
  123. %
  124. % \tighten is intended for use in the preamble of the article.
  125.  
  126. %\def\tighten{\def\baselinestretch{\@tightleading}}
  127. \let\tighten=\relax
  128. \let\tightenlines=\tighten
  129.  
  130. % For authors who feel compelled to change between single and double
  131. % spacing in the manuscript, \singlespace and \doublespace commands
  132. % are provided.  (Following recommendations of AAS Publications Board
  133. % Subcommittee on Preprints.)
  134. %
  135. %    \singlespace
  136. %    \doublespace
  137.  
  138. \def\singlespace{\def\baselinestretch{\@tightleading}\normalsize}
  139. \def\doublespace{\def\baselinestretch{\@doubleleading}\normalsize}
  140.  
  141. % Upper case for sections (optional upper case items).  These are created
  142. % so that some headings can be toggled between mixed case and upper case
  143. % readily.  Headings that might be changed can be wrapped in the style
  144. % file in \sec@upcase{TEXT} constructs; the expansion of \sec@upcase is
  145. % controlled here.  It is `\relax' by default (mixed case heads), and can
  146. % easily be changed to `\uppercase' if desired.  If mixed case headings
  147. % are wanted by the editor, authors MUST supply mixed case text, although
  148. % this is what authors should be doing anyway.  (Mixed can be converted
  149. % to upper, but the reverse transformation cannot be automated.)
  150.  
  151. %\def\sec@upcase#1{\uppercase{#1}}
  152. \def\sec@upcase#1{\relax{#1}}
  153.  
  154. % Sometimes people want to number equations by section, rather than
  155. % sequentially through the whole paper.
  156.  
  157. \def\eqsecnum{
  158.     \@newctr{equation}[section]
  159.     \def\theequation{\hbox{\normalsize\arabic{section}-\arabic{equation}}}}
  160.  
  161. %\@input{slug.sty}
  162.  
  163. %  ****************************************
  164. %  *              SLUG LINE               *
  165. %  ****************************************
  166.  
  167. % There are some obvious style-dependent parameters and formatting
  168. % instructions in this file.  The object has been to keep the author
  169. % commands (the user interface, if you will) society, journal, and
  170. % style-independent, while the style-specific parameters and commands
  171. % are kept below that level.  Commands and parameters that are susceptible
  172. % to external interpretation, either by authors or publishers/translators,
  173. % are identified by indented comment lines, with the semantics of command
  174. % arguments described in upper case text.
  175. %
  176. %    \@journalname{JOURNAL NAME}
  177. %    \cpr@holder{COPYRIGHT HOLDER}
  178.  
  179. \def\@journalname{The Astropolitical Journal}
  180. \def\cpr@holder{American Astronomical Society}
  181.  
  182. % Journal and article identification information is established by the
  183. % editorial staff.  The following macros are used by personnel at the
  184. % editorial office to annotate/record slug-line data and should be included
  185. % in the manuscript preamble, i.e., before the LaTeX \begin{document}.  All
  186. % they do is globally define other TeX control sequences that are used by
  187. % other macros at a later time.
  188. %
  189. %    \received{RECEIPT DATE}
  190. %    \revised{REVISION DATE}
  191. %    \accepted{ACCEPTANCE DATE}
  192. %    \journalid{VOL}{JOURNAL DATE}
  193. %    \articleid{START PAGE}{END PAGE}
  194. %    \paperid{ID}
  195. %    \ccc{CODE}
  196. %
  197. % For preprints and submitted manuscripts in draft/referee format, etc.,
  198. % the slug-line information is irrelevant and in those kinds of style,
  199. % the data are never used.  In my estimation, it is perfectly acceptable
  200. % to have these commands in the file (for future use), so they are defined
  201. % in the usual way.
  202.  
  203. \def\received#1{\gdef\@recvdate{#1}} \received{\relax}
  204. \def\revised#1{\gdef\@revisedate{#1}} \revised{\relax}
  205. \def\accepted#1{\gdef\@accptdate{#1}} \accepted{\relax}
  206. \def\journalid#1#2{\gdef\@jourvol{#1}\gdef\@jourdate{#2}}
  207. \def\articleid#1#2{\gdef\@startpage{#1}\gdef\@finishpage{#2}}
  208. \def\paperid#1{\gdef\@paperid{#1}} \paperid{MS-0001-SAMP}
  209. \def\ccc#1{\gdef\CCC@code{#1}} \ccc{000-00\$75.95-CDB}
  210.  
  211. % Following copyright and running heads \defs are stubs.
  212. %\let\cpright=\@gobbletwo
  213. %\let\righthead=\@gobble
  214. %\let\lefthead=\@gobble
  215.  
  216. % Copyright data.  Permit the author/editor to supply a copyright
  217. % "type" as well as the year.
  218. %
  219. %    \cpright{TYPE}{YEAR}
  220. %
  221. % Copyright types are designated by name and converted to numeric form.
  222. % The mapping of types is defined by the code that sets the @cprtype
  223. % counter.  The language of the copyright notices is defined by \@slug.
  224.  
  225. \def\cpright#1#2{\@nameuse{cpr@#1} \gdef\cpr@year{#2}
  226.     \typeout{`#1' copyright \cpr@year.}}
  227.  
  228. \newcount\@cprtype \@cprtype=\@ne    % Default copyright type.
  229. \def\cpr@AAS{\@cprtype=1}
  230. \def\cpr@PD{\@cprtype=2}
  231. \def\cpr@Crown{\@cprtype=3}
  232. \def\cpr@none{\@cprtype=4}
  233. \def\cpr@ASP{\@cprtype=5}
  234.  
  235. \def\cpr@year{\number\year}        % Default copyright year.
  236.  
  237. % \@slug determines formatting of slugline information.
  238.  
  239. \def\@slug{\par\noindent
  240.     \ifcase\@cprtype
  241.     \relax
  242.     \or
  243.     Copyright \cpr@year\space by the \cpr@holder.
  244.     \or
  245.     This article is in the public domain.
  246.     \or
  247.     Crown copyright \cpr@year\space by the \cpr@holder.
  248.     \or
  249.     No copyright is claimed for this article.
  250.     \or
  251.     Copyright \cpr@year\space by the ASP.
  252.     \fi
  253.     \par\noindent
  254.     Manuscript number \@paperid.\par\noindent
  255.     \CCC@code
  256. }
  257.  
  258. % Authors may be asked to supply running head information.  We use the
  259. % language of the publisher here to distinguish between two pieces of
  260. % information: the left head frequently contains an author list (last
  261. % names, possibly truncated as et al.), while the right head frequently
  262. % contains an abbreviated form of the paper title.  The \lefthead and
  263. % \righthead commands merely collect the information and buffer the text.
  264. %
  265. %    \lefthead{TEXT}
  266. %    \righthead{TEXT}
  267.  
  268. \def\lefthead#1{\gdef\@versohead{#1}} \lefthead{\relax}
  269. \def\righthead#1{\gdef\@rectohead{#1}} \righthead{\relax}
  270.  
  271. % \@runheads determines formatting of running head information.
  272.  
  273. \def\@runheads{\@tempcnta\c@page
  274.   \@whilenum \@tempcnta >0\do{
  275.     \vskip 3ex
  276.     \hbox to30pc{\small\expandafter\uppercase\expandafter{\@versohead}:
  277.     \expandafter\uppercase\expandafter{\@rectohead}\hfil}
  278.     \advance\@tempcnta by\m@ne}
  279. }
  280.  
  281. % The \slugcomment command is provided so authors or editors may include
  282. % a remark about the manuscript that may be desired in print for some
  283. % styles.  For instance, authors like to include information about the
  284. % journal and publication date of accepted papers ("To appear in AJ,
  285. % November 1992").
  286. %
  287. %    \slugcomment{TEXT}
  288. %
  289. % The formatting of the \slugcomment information is controlled by the
  290. % \sluginfo command.
  291.  
  292. \def\slugcomment#1{\gdef\slug@comment{#1}} \slugcomment{\relax}
  293.  
  294. % Editorial offices like to have receipt and acceptance dates on the front
  295. % page for tracking purposes.  The current practice is to require the author
  296. % to type Received___________________ and Accepted ________________ lines
  297. % for the staff to type on.  The \@dates command will typeset either rules
  298. % or the dates specified in \received and/or \accepted commands.  Note that
  299. % authors should not include \received and \accepted.
  300.  
  301. \def\@rcvaccrule{\vrule\@width1.75in\@height0.5pt\@depth\z@}
  302.  
  303. % \@dates determines formatting of MS date information.
  304.  
  305. \def\@dates{{Received}\space%
  306.     \if\@recvdate\relax\@rcvaccrule\else\@recvdate\fi;%
  307.     \hspace{1.5em}{accepted}\space%
  308.     \if\@accptdate\relax\@rcvaccrule\else\@accptdate\fi%
  309. }
  310.  
  311. % The \sluginfo command is executed automatically when a \begin{abstract} is
  312. % encountered, so it is not necessary (or appropriate) for the author to
  313. % include this line explicitly.  The received/accepted business is a
  314. % concern only for the editorial staff, hence we have arranged for the
  315. % author not to have to fuss with it.
  316.  
  317. \def\sluginfo{{\center
  318.     \@dates
  319.     %\@slug
  320.     %\@runheads
  321.     \endcenter}}
  322.  
  323. \let\dates=\sluginfo    % Backwards compatibility
  324.  
  325. %\@input{text.sty}
  326.  
  327. %  ****************************************
  328. %  *            FRONT MATTER              *
  329. %  ****************************************
  330.  
  331. % Make adjustments to LaTeX abstract style: optional upper case heading,
  332. % retain current type size (should be normalsize), ignore twocolumn option
  333. % in this substyle, add \sluginfo, and start abstract on fresh page.
  334.  
  335. \def\abstract{\sluginfo\clearpage
  336.     \begin{center}
  337.     {\bf{ABSTRACT}}
  338.     \end{center}
  339.     \quotation 
  340. }
  341.  
  342. % Title and author identification is by way of standard LaTeX commands
  343. % \title and \author, although the macros themselves are rather different.
  344. % The information is typeset by these macros in this style, rather than
  345. % being buffered as per regular LaTeX.  The authors' principal affiliation
  346. % is specified with a separate macro \affil.  Each \author command should
  347. % be followed by its own \affil (or address).
  348. %
  349. % Authors often have affiliations above and beyond their main employer,
  350. % and these are specified with the \altaffilmark and \altaffiltext commands.
  351. % These commands behave like the \footnotemark and \footnotetext commands
  352. % of LaTeX.  \altaffilmark is appended to author's names in the \author
  353. % lists, and generates the superscript identification numbers.
  354. % The text for the individual alternate affiliations is generated by the
  355. % \altaffiltext command.  It is up to the author to make sure that the
  356. % \altaffilmark numbers attached to authors' names correspond to the correct
  357. % alternate affiliation.
  358. %
  359. %     \title{LUCID TEXT}
  360. %     \author{NAME(S)}
  361. %     \authoraddr{AUTHOR'S POSTAL ADDRESS}
  362. %     \affil{AFFILIATION}
  363. %     \altaffilmark{TAG NUMBER(S)}
  364. %     \altaffiltext{NUMERICAL TAG}{TEXT}
  365. %
  366. % The typesetting performed by these commands is appropriate for the top of
  367. % the first text page of the manuscript.  They could as well be used on a
  368. % title cover page, but vertical placement would have to be controlled by
  369. % the author.   This is not to be encouraged, since I want to discourage
  370. % the introduction of any extra horizontal or vertical space.
  371.  
  372. \def\title#1{{\def\baselinestretch{\@tightleading}
  373.     \center\large\bf{#1}\endcenter}
  374.     \thispagestyle{empty}}
  375. \def\author#1{{\topsep\z@\center\normalsize#1\endcenter}}
  376. \let\authoraddr=\@gobble
  377. \def\affil#1{\vspace*{-2.5ex}{\topsep\z@\center#1\endcenter}}
  378. \def\altaffilmark#1{$^{#1}$}
  379. \def\altaffiltext#1#2{\footnotetext[#1]{#2}\stepcounter{footnote}}
  380.  
  381. % Redefine the LaTeX \and command for this style.
  382.  
  383. \def\and{\vspace*{-0.5ex}{\topsep\z@\center and\endcenter}}
  384.  
  385. %  ****************************************
  386. %  *             KEYWORDS                 *
  387. %  ****************************************
  388.  
  389. % Keywords environment.  Keywords, subject headings, etc., are accommodated
  390. % only as a piece of text; the \keywords command indents if necessary and
  391. % supplies the proper leading text ("Keywords:", "Subject headings:", etc.)
  392. % but does not apply formatting to the user's keyword text.  The author
  393. % must supply the correct punctuation according to the journal style.
  394. %
  395. % Note that the editors of A&A, ApJ, and MNRAS have discussed the issue
  396. % of keywords, and there is disagreement about whether "subject headings"
  397. % or "keywords" should appear after abstracts in astronomical papers.
  398. % It does not really matter what the macro is called, so I will stick
  399. % to \keywords since I don't know what the difference is anyway.
  400.  
  401. \def\@keywordtext{Subject headings}
  402. \def\@keyworddelim{---}
  403.  
  404. \def\keywords#1{\vspace*{-.7ex}%\vspace{\z@}
  405.     \if@twocolumn\noindent{{\it\@keywordtext:\/}\space\@kwds{#1}}
  406.     \else{\quote{\it\@keywordtext:\/}\space\@kwds{#1}\endquote}
  407.     \fi}
  408.  
  409. \let\subjectheadings=\keywords
  410.  
  411. \def\@kwds#1{\def\@kwddlm{}\@for\@kwd:=#1\do
  412.       {\@kwddlm\def\@kwddlm{\space\@keyworddelim\penalty\@m\space}{\@kwd}}}
  413.  
  414. %  ****************************************
  415. %  *             FOOTNOTES                *
  416. %  ****************************************
  417.  
  418. % The following code redefines a few things so that spacing in footnotes is
  419. % different than LaTeX defaults.  The adjustment to \skip\footins increases
  420. % the amount of vspace inserted before the \footnoterule.  Redefine
  421. % \@makefntext to get proper indentation.
  422.  
  423. \skip\footins 4ex plus 1ex minus .5ex
  424. \footnotesep 3ex
  425.  
  426. %\long\def\@makefntext#1{\noindent\hbox to\z@{\hss$^{\@thefnmark}$}#1}
  427. %\long\def\@makefntext#1{\indent\hbox{$^{\@thefnmark}$}#1}
  428.  
  429. %  ****************************************
  430. %  *             SECTIONS                 *
  431. %  ****************************************
  432.  
  433. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
  434. %            optional * [ALTHEADING]{HEADING}
  435. %    Generic command to start a section.
  436. %    NAME       : e.g., 'subsection'
  437. %    LEVEL      : a number, denoting depth of section -- e.g., chapter=1,
  438. %                 section = 2, etc.
  439. %    INDENT     : Indentation of heading from left margin
  440. %    BEFORESKIP : Absolute value = skip to leave above the heading.
  441. %                 If negative, then paragraph indent of text following
  442. %                 heading is suppressed.
  443. %    AFTERSKIP  : if positive, then skip to leave below heading, else
  444. %                 negative of skip to leave to right of run-in heading.
  445. %    STYLE      : commands to set style
  446. %  If '*' missing, then increments the counter.  If it is present, then
  447. %  there should be no [ALTHEADING] argument.
  448.  
  449. % Adjust section heading typography slightly.  This is one of the spots
  450. % where my personal preference is going to bite me.  Anyway, I have reduced
  451. % the size of the main section heads to whatever the normal size is for
  452. % the paper; I don't think it needs to be larger, especially when the
  453. % layout is double-spaced.
  454. %
  455. % Also, modify the indentation behavior so that ALL paragraphs, including
  456. % those first after section heads, are indented.  This is consonant with
  457. % the styles of many journals, although it's non-standard typographic practice.
  458.  
  459. \def\section{\@startsection {section}{1}{\z@}
  460.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\bf}}
  461. \def\subsection{\@startsection{subsection}{2}{\z@}
  462.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\bf}}
  463. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}
  464.   {5ex plus .5ex}{1ex plus .2ex}{\normalsize\it}}
  465.  
  466. \def\thesection{\@arabic{\c@section}.}
  467. \def\thesubsection{\thesection\@arabic{\c@subsection}.}
  468. \def\thesubsubsection{\thesubsection\@arabic{\c@subsubsection}.}
  469. \def\theparagraph{\thesubsubsection\@arabic{\c@paragraph}:}
  470.  
  471. % For ApJ, acknowledgments are set off from main body text simply by
  472. % vertical space (no heading or type size change).  I do the same for
  473. % the AAS manuscript style.  For use in producing more polished output
  474. % for other journals, this macro might generate text saying
  475. % "Acknowledg[e]ments".
  476.  
  477. \def\acknowledgments{\vskip 3ex plus .8ex minus .4ex}
  478. \let\acknowledgements=\acknowledgments            % second spelling
  479.  
  480. % LaTeX sectioning tools.
  481.  
  482. \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  483.      \def\@svsec{}\else
  484.      \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em }\fi
  485.      \@tempskipa #5\relax
  486.       \ifdim \@tempskipa>\z@
  487.         \begingroup \center#6\relax
  488.           \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M 
  489.       \sec@upcase{#8}\par}%
  490.         \endcenter\endgroup
  491.        \csname #1mark\endcsname{#7}\addcontentsline
  492.          {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  493.                       \protect\numberline{\csname the#1\endcsname}\fi
  494.                     #7}\else
  495.         \def\@svsechd{#6\hskip #3\@svsec \sec@upcase{#8}\csname #1mark\endcsname
  496.                       {#7}\addcontentsline
  497.                            {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  498.                              \protect\numberline{\csname the#1\endcsname}\fi
  499.                        #7}}\fi
  500.      \@xsect{#5}}
  501.  
  502. \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
  503.    \ifdim \@tempskipa>\z@
  504.      \begingroup #4\center\@hangfrom{\hskip #1}{\interlinepenalty \@M
  505.        \sec@upcase{#5}\par}\endcenter\endgroup
  506.    \else \def\@svsechd{#4\hskip #1\relax \sec@upcase{#5}}\fi
  507.     \@xsect{#3}}
  508.  
  509.  
  510. %  ****************************************
  511. %  *          EQUATION NUMBERING          *
  512. %  ****************************************
  513.  
  514. % Redefine \appendix so that equation numbers are prepended with 
  515. % \theappendix number.  Reset equation counter so that equation
  516. % numbers in the appendix begin again with 1.  Note that the
  517. % \appendix command is NOT a sectioning command; it is merely
  518. % a delimiting markup between the main body of the paper and the
  519. % appendix.  Sections in the appendix are still started with
  520. % \section commands.
  521. %
  522. %    \appendix
  523.  
  524. \def\appendix{\par
  525.   \setcounter{section}{0}
  526.   \setcounter{subsection}{0}
  527.   \setcounter{equation}{0}
  528.   \def\thesection{\Alph{section}.}
  529.   \def\theequation{\hbox{\normalsize\Alph{section}\arabic{equation}}}}
  530.  
  531. % Define mathletters environment.  This is a wrapper that goes
  532. % *around* (outside of) equation or eqnarray environments.
  533. %
  534. %    \begin{mathletters}
  535. %    \end{mathletters}
  536.  
  537. \newcounter{cureqno}
  538.  
  539. \newenvironment{mathletters}{\refstepcounter{equation}%
  540.     \setcounter{cureqno}{\value{equation}}%
  541.     \let\@curtheeqn\theequation%
  542.     \edef\cur@eqn{\csname theequation\endcsname}%
  543.     \def\theequation{\cur@eqn\alph{equation}}%
  544.     \setcounter{equation}{0}}%
  545.     {\let\theequation\@curtheeqn%
  546.     \setcounter{equation}{\value{cureqno}}}
  547.  
  548. % The \eqnum command allows the author to override all automatic
  549. % equation marking schemes.
  550. %
  551. %    \eqnum{TEXT}
  552.  
  553. \def\eqnum#1{\def\theequation{#1}\let\@currentlabel\theequation
  554.     \addtocounter{equation}{\m@ne}}
  555.  
  556. %  ****************************************
  557. %  *          BIBLIOGRAPHY                *
  558. %  ****************************************
  559.  
  560. % Bibliography/references environment.  For the time being, I don't think
  561. % it would be a good idea to force an implementation based on BibTeX,
  562. % although I'll prepare for that eventuality by using the constructs and
  563. % general ideas of the LaTeX thebibliography environment.  Adjustments
  564. % have been made so that the \cite-\bibitem mechanism can be used to cite
  565. % references symbolically while maintaining proper citation syntax within
  566. % the paper; the author must create the citation label for each reference
  567. % in proper journal format in the \bibitem command.
  568. %
  569. %    \begin{thebibliography}
  570. %    \bibitem[LABEL]{TEXTTAG} \reference <bibliographic data>
  571. %    \end{thebibliography}
  572. %
  573. % where LABEL must adhere to the journal's standards, e.g. "Abt 1986".
  574. %
  575. % It is not necessary to use the thebibliography environment.  This style
  576. % defines a references environment that simply sets off the list of references
  577. % and adjusts spacing parameters.  It is not possible to use \bibitems
  578. % within the references environment.  (The \reference command cannot be
  579. % shortened to \ref; \ref is used in vanilla LaTeX for cross-referencing.)
  580. %
  581. %    \begin{references}
  582. %    \reference <bibliographic data>
  583. %    \end{references}
  584. %
  585. %    \markcite{TEXT}
  586. %
  587. % Observe that the bibliographic data supplied by the author must also
  588. % conform to the standards of the journal.  I have elected not to burden
  589. % authors with tedious LaTeX commands which would require many curly braces
  590. % to delimit the bibliographic fields because many of the journals I have
  591. % targeted in this project have agreed to reduce typographic overhead (bolding,
  592. % italicizing, etc.) in reference lists.  (See Abt's editorial in ApJ 357.)
  593. % It is the responsibility of the author to get these fields in the proper
  594. % order with the correct punctuation; the information will be typeset as is,
  595. % i.e., in roman with no size or style changes.
  596. %
  597. % Macros are provided for many of the oft-referenced journals so that authors
  598. % may use the LaTeX names rather than having to look up a particular journal's
  599. % specific abbreviation.  In principle, all the journals should be using the
  600. % same abbreviations, too, but I anticipate some changes in the specific
  601. % abbreviations before a set is finally settled on.  As long as these macros
  602. % are kept up to date, authors need not be concerned about such editorial
  603. % changes.
  604. %
  605. % Corresponding with the non-BibTeX references environment and \reference
  606. % command for the reference list is the \markcite command.  This can be
  607. % used to identify in-text citations; in this case, the author provides
  608. % the actual citation text as opposed to the symbolic tag.  The use of
  609. % this is encouraged, even for journals where no special formatting of
  610. % citation call-outs is required; it is crucial for the future use of
  611. % on-line browsers.
  612.  
  613. \def\references{\subsection*{REFERENCES}
  614.     \bgroup\parindent=\z@\parskip=\itemsep
  615.     \def\refpar{\par\hangindent=3em\hangafter=1}}
  616. \def\endreferences{\refpar\egroup\revtex@pageid}
  617.  
  618. \def\thebibliography{\subsection*{REFERENCES}
  619.     \list{\null}{\leftmargin 3em\labelwidth\z@\labelsep\z@\itemindent -3em
  620.     \usecounter{enumi}}
  621.     \def\refpar{\relax}
  622.     \def\newblock{\hskip .11em plus .33em minus .07em}
  623.     \sloppy\clubpenalty4000\widowpenalty4000
  624.     \sfcode`\.=1000\relax}
  625. \def\endthebibliography{\endlist\revtex@pageid}
  626.  
  627. \def\@biblabel#1{\relax}
  628. %\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
  629. \def\@cite#1#2{#1\if@tempswa , #2\fi}
  630.  
  631. \def\reference{\relax\refpar}  % Generic: might be better...
  632. \def\markcite#1{#1\relax}
  633.  
  634. % Modify \@citex so that individual citation texts are NOT hboxed.
  635. % This allows TeX to break lines at spaces between words in citations.
  636. % Remove the obnoxious {\bf ?} that was inserted in the text when
  637. % undefined citations are encountered; here, the warning message is
  638. % printed only on the terminal.
  639.  
  640. \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  641.   \def\@citea{}\@cite{\@for\@citeb:=#2\do
  642.     {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
  643.        {b@\@citeb}{\@warning
  644.        {Citation `\@citeb' on page \thepage \space undefined}}%
  645. {\csname b@\@citeb\endcsname}}}{#1}}
  646. % Permit \keywords declaration, but eat the contents.
  647.  
  648. \let\keywords=\@gobble
  649. \let\subjectheadings=\@gobble
  650.  
  651. %\@input{tblfig.sty}
  652.  
  653. %  ****************************************
  654. %  *         TABLES AND FIGURES           *
  655. %  ****************************************
  656.  
  657. % Additions and adjustments for tables and figures.
  658.  
  659. % Footnotes for tables are to be identified with lower case alphabetics,
  660. % rather than numeric.  \tablenotemark and \tablenotetext commands are
  661. % provided analogous to \footnotemark and \footnotetext, but with the
  662. % identifier *required*, like \altaffilmark and \altaffiltext.  The
  663. % \tablenotetext must be specified before the \end{table}, since
  664. % \end{table} displays it.
  665. %
  666. %     \tablenotemark{TAG LETTER(S)}
  667. %     \tablenotetext{ALPHA TAG}{TEXT}
  668. %
  669. % Note that TAG LETTER == ALPHA TAG for corresponding text.  It is the
  670. % responsibility of the author to get the correspondence correct.
  671. %
  672. % The table footnotes are coupled to the table in which they occur, rather
  673. % than being associated with a particular page, and they are printed with
  674. % the table (relatively close to the caption) instead of appearing at the
  675. % extreme bottom of the page.  This is done to ensure that the notes wind
  676. % up on the same page as the table, since tables are floats and can migrate
  677. % from one page to another.  There is the additional benefit that the notes
  678. % are unambiguously attached to the proper table, which is what is required
  679. % in the event that the editorial requirement of one table only per page
  680. % is ever changed to permit several tables per page.
  681. %
  682. % Footnotes are NOT supported for figures.
  683.  
  684. \def\tablenotemark#1{\rlap{$^{\rm #1}$}}
  685.  
  686. % The \tablenotetext command buffers the table note text and the "proper"
  687. % tablenote formatting information in a token buffer.  The tablenotes are
  688. % dispensed into the vertical page list by \spew@tblnotes, which is
  689. % executed by \end{table}.  Note that certain "global" tablenote formatting
  690. % details are handled by \spew@tblnotes, which also clears the tblnote list.
  691. % Praise and honor are due to Kresten Krab Thorup (krab@iesd.auc.dk) for
  692. % posting ftn.sty to the Usenet, from which I drew the technique.
  693.  
  694. \newtoks\@temptokenb
  695. \def\tblnote@list{}
  696.  
  697. \def\tablenotetext#1#2{
  698.     \@temptokena={\vspace{.5ex}{\noindent\llap{$^{#1}$}#2}\par}
  699.     \@temptokenb=\expandafter{\tblnote@list}
  700.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  701.  
  702. \def\spew@tblnotes{
  703.   \ifx\tblnote@list\@empty\relax
  704.   \else
  705.     \vspace{4.5ex}
  706.     \footnoterule
  707.     \vspace{.5ex}
  708.     {\footnotesize\tblnote@list}
  709.     \gdef\tblnote@list{}
  710.   \fi}
  711.  
  712. \def\endtable{\spew@tblnotes\end@float}
  713. \@namedef{endtable*}{\spew@tblnotes\end@dblfloat}
  714.  
  715. % Add a \tableline command for use in tabular environments.  This command
  716. % produces the horizontal rule(s) between the column headings and the body
  717. % of the table.  Authors are discouraged from using any \hlines themselves,
  718. % and are typically forbidden from using vertical rules by editors.
  719.  
  720. \let\tableline=\hline
  721.  
  722. % \@makecaption determines formatting for figure and table captions.  
  723. % For manuscripts, all captions should be set as flushleft paragraphs.
  724.  
  725. \long\def\@makecaption#1#2{\vskip 2ex\noindent #1 #2\par}
  726.  
  727. % The \tablenum command allows the author to override all automatic
  728. % table marking schemes.
  729. %
  730. %    \tablenum{TEXT}
  731.  
  732. \def\tablenum#1{\def\thetable{#1}\let\@currentlabel\thetable
  733.     \addtocounter{table}{\m@ne}}
  734.  
  735. % The \figurenum command allows the author to override all automatic
  736. % figure marking schemes.
  737. %
  738. %    \figurenum{TEXT}
  739.  
  740. \def\figurenum#1{\def\thefigure{#1}\let\@currentlabel\thefigure
  741.     \addtocounter{figure}{\m@ne}}
  742.  
  743. %  ****************************************
  744. %  *           PLANO TABLES               *
  745. %  ****************************************
  746.  
  747. % Plano tables are camera-ready pages that are included in a typeset
  748. % article the same way as line drawings, graphs, and other camera-ready
  749. % art, i.e., as "planographic" figures.  There are desirable properties
  750. % for a formatter to have that are somewhat above and beyond LaTeX'x
  751. % tabular environment that would facilitate the creation of such tables.
  752. % Among these are breaking long tables across pages, using footnotes
  753. % in a table, specifying comments and references for tables, etc.
  754. %
  755. % What follows was inspired by supertab.sty by Theo Jurriens, 1988.
  756.  
  757. % Commands for identifying table elements in a consistent way.  Observe
  758. % that the formatting is embedded in the macro definitions so that the
  759. % author doesn't need to be concerned about stylistic nuances.
  760. %
  761. %    \tablecaption{TEXT}
  762. %    \tablehead{TEXT}
  763. %    \colhead{HEADING}
  764. %    \tabletail{TEXT}
  765. %    \tablewidth{DIMEN}
  766. %    \tableheadfrac{NUM}
  767. %
  768. % ApJ "standard" widths for tables are 21 and 42 picas, which are the
  769. % widths of single and double columns in the journal.  For wide tables,
  770. % any width less than 42 is acceptable, although using widths of 30pc
  771. % and up will result in better appearance when centering.
  772.  
  773. \newbox\pt@box
  774. \newdimen\pt@width
  775. \newcount\pt@line
  776. \newcount\pt@nlines
  777. \newcount\pt@ncol
  778.  
  779. \def\colhead#1{\omit\hidewidth{#1}\hidewidth\global\advance\pt@ncol by\@ne}
  780. \def\tablecaption#1{\gdef\pt@caption{#1}} \def\pt@caption{\relax}
  781. \def\tablehead#1{\gdef\pt@head{\hline\hline\relax\\[-1.7ex]
  782.     #1\hskip\tabcolsep\\[.7ex]\hline\relax\\[-1.5ex]}} \def\pt@head{\relax}
  783. \def\tabletail#1{\gdef\pt@tail{#1}} \def\pt@tail{\relax}
  784. \def\tablewidth#1{\pt@width=#1} \pt@width\textwidth
  785. \def\tableheadfrac#1{\gdef\pt@headfrac{#1}} \def\pt@headfrac{.1}
  786.  
  787. % Calculate the number of tabular rows that will fit in the body of the
  788. % table.  The height of the table body and the number of lines are
  789. % calculated thus:
  790. %
  791. %     bodyheight = \textheight * (1 - \pt@headfrac)
  792. %     \pt@nlines = bodyheight / (\arraystretch * \baselineskip)
  793. %
  794. % The row height can be seen to be valid algebraically if one examines the
  795. % definitions for \strutbox, \@setstrut, and \@array.  I could eliminate
  796. % this calculation, as well as its attendant parameters, if it were possible
  797. % to determine the accumulated height of the \halign box as TeX goes along.
  798.  
  799. \def\pt@calcnlines{\@tempdima\pt@headfrac\textheight
  800.     \@tempdimb\textheight\advance\@tempdimb by-\@tempdima
  801.     \@tempdima\arraystretch\baselineskip
  802.     \divide\@tempdimb by\@tempdima
  803.     \global\pt@nlines\@tempdimb}
  804.  
  805. % Define \pt@tabular, a ripoff of \@tabular but with \leavevmode removed
  806. % so tabular box can be set with \setbox.  I do this so that table notes
  807. % can be set to natural width of table, if desired.  Also, set \@acol
  808. % to \@ptabacol, which is called when building the preamble for the
  809. % \halign (assuming the first column format specification is "l", which
  810. % it should be for ApJ tables) so that \tabskip within the table is set
  811. % to \fill.  This permits us to toggle between natural and fixed-width
  812. % tables without requiring the user to change markup.  Note that by
  813. % forcing \tabskip always to be \fill, I pretty well nullify any
  814. % @{\hspace} commands the user puts in the template, but this environment
  815. % is for people who don't want to think about that sort of stuff anyway.
  816.  
  817. \def\pt@tabular{\hbox \bgroup $\let\@acol\@ptabacol 
  818.    \let\@classz\@tabclassz
  819.    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
  820.  
  821. \def\@ptabacol{\edef\@preamble{\@preamble \hskip \tabcolsep\tabskip\fill}}
  822.  
  823. % Permit different identifying strings, one for the first page of the
  824. % table and one for continuation pages.  LaTeX's \fnum@table is set to
  825. % one or the other automatically in the environment.  Note that caption
  826. % handling is not so graceful: you have to edit inside the big macros to
  827. % adjust this.  Someday, I will be ambitious enough to fix this.
  828.  
  829. \def\fnum@ptable{TABLE \thetable}
  830. \def\fnum@ptablecont{TABLE \thetable---{\it Continued}}
  831.  
  832. \def\set@mkcaption{\long\def\@makecaption##1##2{
  833.     \center\Large\sc##1\\[.5ex]##2\endcenter\vskip 1.5ex}}
  834. \def\set@mkcaptioncont{\long\def\@makecaption##1##2{
  835.     \center\Large\sc##1\endcenter\vskip 1.5ex}}
  836.  
  837. % The environment definition.  It is desirable for the last portion of
  838. % a multi-page table to be \topinserted, rather than \midinserted.
  839. % At the moment, this doesn't happen.  It's not straightforward to
  840. % make that preference known at the *end* of table processing.
  841. %
  842. %    \begin{planotable}
  843. %    \end{planotable}
  844. %
  845. %    \startdata
  846.  
  847. \newenvironment{planotable}[1]{\def\pt@format{\string#1}%
  848.     \set@tblnotetext\pt@ncol=0}%
  849.     {\crcr\noalign{\vskip .7ex}\hline\endtabular%
  850.     \pt@width\wd\pt@box\box\pt@box\spew@ptblnotes%
  851.     \typeout{Table \thetable\space has been set to width \the\pt@width}%
  852.     \endcenter\end@float}
  853.  
  854. \def\startdata{\pt@line=0\pt@calcnlines%
  855.     \ifdim\pt@width>\z@\def\@halignto{to \pt@width}\else\def\@halignto{}\fi%
  856.     \let\fnum@table=\fnum@ptable\set@mkcaption%
  857.     \@float{table}\center\caption{\pt@caption}\leavevmode%
  858.     \setbox\pt@box=\pt@tabular{\pt@format}\pt@head}
  859.  
  860. % A kludgey kind of line delimiter is needed so that the line counter
  861. % can be checked prior to adding the line to the alignment box.  This
  862. % is bad because this form does not permit the addition of vertical
  863. % space using the [.5ex] construct; this has to be done with an explicit
  864. % \vskip.  And a disgusting \noalign is required, so I have to create
  865. % another silly piece of markup to accomplish this conveniently.
  866. %
  867. % What is desired, of course, is for this line count checking to take
  868. % place within the syntax of the regular LaTeX \\ command.  I have been
  869. % giving myself apoplexy trying to figure this out for the last 36 hours,
  870. % and I have decided I will have to wait for the onset of my "lucid
  871. % period" for a solution.  In the meantime...
  872.  
  873. \def\pt@nl{\global\advance\pt@line by\@ne%
  874.   \ifnum\pt@line=\pt@nlines%
  875.     \endtabular\box\pt@box
  876.     \endcenter\end@float\clearpage%
  877.     \addtocounter{table}{\m@ne}%
  878.     \let\fnum@table=\fnum@ptablecont\set@mkcaptioncont%
  879.     \@float{table}\center\caption{\pt@caption}\leavevmode%
  880.     \global\pt@ncol=0%
  881.     \setbox\pt@box=\pt@tabular{\pt@format}\pt@head%
  882.     \global\pt@line=0%
  883.   \else\\
  884.   \fi}
  885.  
  886. % Author markup commands for planotable environment line breaks.
  887. %
  888. %    \nl == \nextline
  889. %    \tablevspace{DIMEN}
  890. %    \tablebreak
  891.  
  892. \let\nl=\pt@nl
  893. \let\nextline=\pt@nl
  894.  
  895. \def\tablevspace#1{\noalign{\vskip{#1}}}
  896. \def\tablebreak{\pt@line\pt@nlines\advance\pt@line by\m@ne\pt@nl}
  897.  
  898. % We have some specialty heads that are sometimes wanted in tables.
  899. %
  900. %    \cutinhead{TEXT}
  901. %    \sidehead{TEXT}
  902.  
  903. \def\cutinhead#1{\noalign{\vskip 1.5ex}
  904.     \hline\pt@nl\noalign{\vskip -4ex}
  905.     \multicolumn{\pt@ncol}{c}{#1}\pt@nl
  906.     \noalign{\vskip .8ex}
  907.     \hline\pt@nl\noalign{\vskip -2ex}}
  908.  
  909. \def\sidehead#1{\noalign{\vskip 1.5ex}
  910.     \multicolumn{\pt@ncol}{@{\hskip\z@}l}{#1}\pt@nl
  911.     \noalign{\vskip .5ex}}
  912.  
  913. % Internal commands for dealing with table footnotes.  I had to hack at
  914. % these to make them co-exist with similarly/identically named commands
  915. % for non-plano tables.  This is admittedly ugly, and is on the agenda
  916. % for improved treatment Real Soon Now.
  917.  
  918. \def\set@tblnotetext{\def\tablenotetext##1##2{{%
  919.     \@temptokena={\vspace{0ex}{%
  920.     \parbox{\pt@width}{\hskip1em$^{\rm ##1}$##2}\par}}%
  921.     \@temptokenb=\expandafter{\tblnote@list}
  922.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}}}
  923.  
  924. \def\spew@ptblnotes{
  925.   \ifx\tblnote@list\@empty\relax
  926.   \else
  927.     \par
  928.     \vspace{2ex}
  929.     {\tblnote@list}
  930.     \gdef\tblnote@list{}
  931.   \fi}
  932.  
  933. % Special kinds of table footnotes.  Sometimes authors tabulate things
  934. % which have corresponding references, and it may be desirable to associate
  935. % these references with the table rather than (or in addition to) the
  936. % formal reference list.  Occasionally, authors wish to append a short
  937. % paragraph of explanatory notes that pertain to the entire table, but
  938. % which are different than the caption.
  939. %
  940. %    \tablerefs{REFERENCE LIST}
  941. %    \tablecomments{TEXT}
  942. %
  943. % It is acceptable to the Press for the titles of these paragraphs to be
  944. % in all caps in \normalsize.  Note that I have employed the hacker's
  945. % caps and small caps, although this may be considered inferior.
  946.  
  947. \def\tablerefs#1{\@temptokena={\vspace*{.8ex}{%
  948.     \parbox{\pt@width}{\hskip1em{\rm R{\footnotesize EFERENCES}.---}#1}\par}}%
  949.     \@temptokenb=\expandafter{\tblnote@list}
  950.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  951.  
  952. \def\tablecomments#1{\@temptokena={\vspace*{.8ex}{%
  953.     \parbox{\pt@width}{\hskip1em{\rm N{\footnotesize OTE}.---}#1}\par}}%
  954.     \@temptokenb=\expandafter{\tblnote@list}
  955.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  956.  
  957. % Figure and table style parameters.
  958.  
  959. \def\thefigure{\@arabic\c@figure}
  960. \def\fnum@figure{{\rm Fig.\space\thefigure.---}}
  961.  
  962. \def\thetable{\@arabic\c@table}
  963. \def\fnum@table{{\rm Table \thetable:}}
  964.  
  965. % Figure and table float positions.
  966.  
  967. \def\fps@figure{bp}
  968. \def\fps@table{bp}
  969.  
  970. %  ****************************************
  971. %  *           EPS INCLUSIONS             *
  972. %  ****************************************
  973.  
  974. % Include Rokicki's epsf.sty file explicitly.
  975.  
  976. \@ifundefined{epsfbox}{\@input{epsf.sty}}{\relax}
  977.  
  978. % Simplified EPS inclusion macros so we can see how this goes...
  979. % These are layered on Rokicki's dvips material, and are dependent
  980. % on the author's use of that DVI driver.
  981. %
  982. %    \plotone{EPSFILE}
  983. %    \plottwo{EPSFILE}{EPSFILE}
  984. %    \plotfiddle{EPSFILE}{VSIZE}{ROT}{HSF}{VSF}{HTRANS}{VTRANS}
  985. %
  986. % \plotone inserts the plot in a space that is \columnwidth wide; the
  987. % plot is scaled so the horizontal dimension fits in the text width,
  988. % and the vertical dimension is scaled to maintain the aspect ratio.
  989. % \plottwo inserts two plots next to each other in one \columnwidth,
  990. % sort of like "two-up" mode.
  991. %
  992. %    EPSFILE    name of file with EPS
  993. %
  994. % The following arguments are for the \plotfiddle macro which formats
  995. % the \special itself, prepares vspace, etc.  This completely bypasses
  996. % Rokicki's macros that attempt to rationalize the EPS BoundingBox with
  997. % the LaTeX page dimensions.
  998. %
  999. %    VSIZE      vertical white space to allow for plot
  1000. %    ROT        rotation angle
  1001. %    HSF        horiz scale factor
  1002. %    VSF        vert scale factor
  1003. %    HTRANS     horiz translation
  1004. %    VTRANS     vert translation
  1005.  
  1006. %\epsfverbosetrue
  1007.  
  1008. \def\plotone#1{\centering \leavevmode
  1009.     \epsfxsize=\columnwidth \epsfbox{#1}}
  1010.  
  1011. \def\plottwo#1#2{\centering \leavevmode
  1012.     \epsfxsize=.45\columnwidth \epsfbox{#1} \hfil
  1013.     \epsfxsize=.45\columnwidth \epsfbox{#2}}
  1014.  
  1015. \def\plotfiddle#1#2#3#4#5#6#7{\centering \leavevmode
  1016.     \vbox to#2{\rule{0pt}{#2}}
  1017.     \special{psfile=#1 voffset=#7 hoffset=#6 vscale=#5 hscale=#4 angle=#3}}
  1018.  
  1019. %\@input{abbrevs.sty}
  1020.  
  1021. %  ****************************************
  1022. %  *            ABBREVIATIONS             *
  1023. %  ****************************************
  1024.  
  1025. % Abbreviations for journals.  The object here is to provide authors
  1026. % with convenient shorthands for the most "popular" (often-cited)
  1027. % journals; the author can use these markup tags without being concerned
  1028. % about the exact form of the journal abbreviation, or its formatting.
  1029. % It is up to the keeper of the macros to make sure the macros expand
  1030. % to the proper text.  If macro package writers agree to all use the
  1031. % same TeX command name, authors only have to remember one thing, and
  1032. % the style file will take care of editorial preferences.  This also
  1033. % applies when a single journal decides to revamp its abbreviating
  1034. % scheme, as happened with the ApJ (Abt 1991).
  1035.  
  1036. \let\jnl@style=\rm
  1037. \def\ref@jnl#1{{\jnl@style#1}}
  1038.  
  1039. \def\aj{\ref@jnl{AJ}}            % Astronomical Journal
  1040. \def\araa{\ref@jnl{ARA\&A}}        % Annual Review of Astron and Astrophys
  1041. \def\apj{\ref@jnl{ApJ}}            % Astrophysical Journal
  1042. \def\apjl{\ref@jnl{ApJ}}        % Astrophysical Journal, Letters
  1043. \def\apjs{\ref@jnl{ApJS}}        % Astrophysical Journal, Supplement
  1044. \def\ao{\ref@jnl{Appl.Optics}}        % Applied Optics
  1045. \def\apss{\ref@jnl{Ap\&SS}}        % Astrophysics and Space Science
  1046. \def\aap{\ref@jnl{A\&A}}        % Astronomy and Astrophysics
  1047. \def\aapr{\ref@jnl{A\&A~Rev.}}        % Astronomy and Astrophysics Reviews
  1048. \def\aaps{\ref@jnl{A\&AS}}        % Astronomy and Astrophysics, Supplement
  1049. \def\azh{\ref@jnl{AZh}}            % Astronomicheskii Zhurnal
  1050. \def\baas{\ref@jnl{BAAS}}        % Bulletin of the AAS
  1051. \def\jrasc{\ref@jnl{JRASC}}        % Journal of the RAS of Canada
  1052. \def\memras{\ref@jnl{MmRAS}}        % Memoirs of the RAS
  1053. \def\mnras{\ref@jnl{MNRAS}}        % Monthly Notices of the RAS
  1054. \def\pra{\ref@jnl{Phys.Rev.A}}        % Physical Review A: General Physics
  1055. \def\prb{\ref@jnl{Phys.Rev.B}}        % Physical Review B: Solid State
  1056. \def\prc{\ref@jnl{Phys.Rev.C}}        % Physical Review C
  1057. \def\prd{\ref@jnl{Phys.Rev.D}}        % Physical Review D
  1058. \def\prl{\ref@jnl{Phys.Rev.Lett}}    % Physical Review Letters
  1059. \def\pasp{\ref@jnl{PASP}}        % Publications of the ASP
  1060. \def\pasj{\ref@jnl{PASJ}}        % Publications of the ASJ
  1061. \def\qjras{\ref@jnl{QJRAS}}        % Quarterly Journal of the RAS
  1062. \def\skytel{\ref@jnl{S\&T}}        % Sky and Telescope
  1063. \def\solphys{\ref@jnl{Solar~Phys.}}    % Solar Physics
  1064. \def\sovast{\ref@jnl{Soviet~Ast.}}    % Soviet Astronomy
  1065. \def\ssr{\ref@jnl{Space~Sci.Rev.}}    % Space Science Reviews
  1066. \def\zap{\ref@jnl{ZAp}}            % Zeitschrift fuer Astrophysik
  1067.  
  1068. \let\astap=\aap
  1069. \let\apjlett=\apjl
  1070. \let\apjsupp=\apjs
  1071.  
  1072. %\@input{misc.sty}
  1073.  
  1074. %  ****************************************
  1075. %  *            MISCELLANEOUS             *
  1076. %  ****************************************
  1077.  
  1078. % Handy little things everybody works out for themselves anyway.  Many
  1079. % of these come from Springer's A&A package, and some were contributed
  1080. % by Francois Schweizer at DTM.  You can go berserk making these up,
  1081. % especially when you start getting into the composite ones.  We have
  1082. % tried to select a tractable number that were useful, and somewhat
  1083. % difficult to get right because fussy kerning or some such is required.
  1084. % Most can be used in or out of math mode with impunity; \alt and \agt
  1085. % are relations and can only be used in math mode.
  1086.  
  1087. \def\deg{\hbox{$^\circ$}}
  1088. \def\sun{\hbox{$\odot$}}
  1089. \def\earth{\hbox{$\oplus$}}
  1090. \def\lesssim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$<$}}}}
  1091. \def\gtrsim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$>$}}}}
  1092. \def\sq{\hbox{\rlap{$\sqcap$}$\sqcup$}}
  1093. \def\arcmin{\hbox{$^\prime$}}
  1094. \def\arcsec{\hbox{$^{\prime\prime}$}}
  1095. \def\fd{\hbox{$.\!\!^{\rm d}$}}
  1096. \def\fh{\hbox{$.\!\!^{\rm h}$}}
  1097. \def\fm{\hbox{$.\!\!^{\rm m}$}}
  1098. \def\fs{\hbox{$.\!\!^{\rm s}$}}
  1099. \def\fdg{\hbox{$.\!\!^\circ$}}
  1100. \def\farcm{\hbox{$.\mkern-4mu^\prime$}}
  1101. \def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
  1102. \def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}
  1103. \def\micron{\hbox{$\mu$m}}
  1104.  
  1105. \let\la=\lesssim            % For Springer A&A compliance...
  1106. \let\ga=\gtrsim
  1107.  
  1108. % Permit author to typeset "case" fractions.  This is sometimes
  1109. % wanted in displayed equations, during which LaTeX will set fractions
  1110. % specified as \frac{x}{y} as "built-up" fractions (numerator and
  1111. % denominator at body text size).
  1112.  
  1113. \def\case#1#2{\hbox{$\frac{#1}{#2}$}}
  1114.  
  1115. % Permit author to typeset fractions set with solidus where the size
  1116. % is reduced and the numerals are oriented diagonally.  Note that this
  1117. % is different from a "shilled" fraction, which the author can produce
  1118. % without any special formatting markup.  Define markup shorthands for
  1119. % several common fractions using solidus.
  1120.  
  1121. \def\slantfrac#1#2{\hbox{$\,^#1\!/_#2$}}
  1122. \def\onehalf{\slantfrac{1}{2}}
  1123. \def\onethird{\slantfrac{1}{3}}
  1124. \def\twothirds{\slantfrac{2}{3}}
  1125. \def\onequarter{\slantfrac{1}{4}}
  1126. \def\threequarters{\slantfrac{3}{4}}
  1127.  
  1128. \def\ubvr{\hbox{$U\!BV\!R$}}        % UBVR system
  1129. \def\ub{\hbox{$U\!-\!B$}}        % U-B
  1130. \def\bv{\hbox{$B\!-\!V$}}        % B-V
  1131. \def\vr{\hbox{$V\!-\!R$}}        % V-R
  1132. \def\ur{\hbox{$U\!-\!R$}}        % U-R
  1133.  
  1134. % Notation for atomic species (ionization levels).  The ionization state
  1135. % is specified as the second argument, and should be given as a numeral.
  1136. % The macro has to expand the numeric state into the proper notation for
  1137. % the publication (roman, numeric, plus signs, etc.)
  1138. %
  1139. %    \ion{ELEMENT}{IONIZATION STATE}
  1140.  
  1141. \def\ion#1#2{#1$\;${\small\rm\@Roman{#2}}\relax}
  1142.  
  1143. % Centered ellipsis for use in tables (for unknown values).  \nodata
  1144. % is generalized markup for this notion: format of null-valued entries
  1145. % in tables is style-specific.
  1146.  
  1147. %\def\cellipsis{\hfill$\cdots$\hfill}
  1148. \def\nodata{\multicolumn{1}{c}{$\cdots$}}
  1149.  
  1150. % This is a generalization of the \LaTeX definition that comes in LaTeX.
  1151. % The change here ensures that LaTeX will be typeset in the current style,
  1152. % rather than always in roman.
  1153.  
  1154. \newcount\lecurrentfam
  1155. \def\LaTeX{\lecurrentfam=\the\fam \leavevmode L\raise.42ex
  1156.         \hbox{$\fam\lecurrentfam\scriptstyle\kern-.3em A$}\kern-.15em\TeX}
  1157.  
  1158. %  ****************************************
  1159. %  *              DEBUGGING               *
  1160. %  ****************************************
  1161.  
  1162. \def\sizrpt{
  1163.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1164.     \typeout{
  1165.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1166. }}
  1167.